<!--添加楼栋-->
<div class="dialog_content">
    <form id="info_form" action="{:url('addDo')}" method="post">
        <input type="hidden" name="house_id" value="{$house_id}">
        <table width="100%" class="table_form">
            <tr>
                <th width="120">楼栋 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="title">
                </td>
            </tr>
            <tr>
                <th>单元 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="danyuan">
                </td>
            </tr>
            <tr>
                <th>层数 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="floor_num">
                </td>
            </tr>
            <tr>
                <th>户数 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="room_num">
                </td>
            </tr>
            <tr>
                <th>楼户配比 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="floor_rate">
                </td>
            </tr>
            <tr>
                <th>开盘时间 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="open_time">
                </td>
            </tr>
            <tr>
                <th>交房时间 :</th>
                <td>
                    <input type="text" class="input-text"  size="20" name="complate_time">
                </td>
            </tr>
            <tr>
                <th>包含户型 :</th>
                <td>
                    {volist name='huxing_list' id='vo'}
                    <label><input type="checkbox" name="house_type_id[]" value="{$vo.id}">{$vo.title}</label>
                    {/volist}
                </td>
            </tr>
            <tr>
                <th>销售状态 :</th>
                <td>
                    {:getLinkMenu(11,'sale_status','select')}
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
    $(function(){
        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.yingloujie.tip({content:result.msg});
                setTimeout(function(){window.location.reload();},1000);
            } else {
                $.yingloujie.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>